package com.carl.math;

import java.util.Scanner;

public class question_09 {
    public static void main(String[] args) {

        // 给一个秒数，转换成时分秒
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int hour = n / 3600;
        n %= 3600;
        int min = n / 60;
        int sec = n % 60;
        System.out.printf("%d h:%d m:%d s",hour,min,sec);

    }
}
